//
//  CrashHandler.h
//  crashreport
//
//  Created by william on 12-8-8.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <mach/machine/thread_status.h>	
#import <mach/thread_status.h>
#import <mach/mach.h>
#import <mach/exception.h>
#import <mach/task.h>
#import <mach/mach_error.h>
#import <pthread.h>


kern_return_t   catch_exception_raise
(mach_port_t                          exception_port,
 mach_port_t                                  thread,
 mach_port_t                                    task,
 exception_type_t                          exception,
 exception_data_t                               code,
 mach_msg_type_number_t                   code_count);